import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class People {

    public String getName() {
        return name;
    }

    public Phone getPhone() {
        return phone;
    }

    public PC getPc() {
        return pc;
    }

    private String name;
    @Autowired
    private Phone phone;
    @Autowired
    @Qualifier("hw")
    private PC pc;
}
